package com.ruoyi.project.wx.service.impl;

import com.ruoyi.project.wx.dao.CmsLinkDao;
import com.ruoyi.project.wx.domain.CmsLinkDO;
import com.ruoyi.project.wx.service.CmsLinkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class CmsLinkServiceImpl implements CmsLinkService {
	@Autowired
	private CmsLinkDao cmsLinkDao;
	
	@Override
	public CmsLinkDO get(String id){
		return cmsLinkDao.get(id);
	}
	
	@Override
	public List<CmsLinkDO> list(Map<String, Object> map){
		return cmsLinkDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return cmsLinkDao.count(map);
	}
	
	@Override
	public int save(CmsLinkDO cmsLink){
		return cmsLinkDao.save(cmsLink);
	}
	
	@Override
	public int update(CmsLinkDO cmsLink){
		return cmsLinkDao.update(cmsLink);
	}
	
	@Override
	public int remove(String id){
		return cmsLinkDao.remove(id);
	}
	
	@Override
	public int batchRemove(String[] ids){
		return cmsLinkDao.batchRemove(ids);
	}

    @Override
    public List<CmsLinkDO> likeList(Map<String, Object> map){
        return cmsLinkDao.likeList(map);
    }
    @Override
    public int likeListCount(Map<String, Object> map){
        return cmsLinkDao.likeListCount(map);
    }

    @Override
    public CmsLinkDO getLinkUrl(Map<String, Object> params) {
		CmsLinkDO cmsLinkDO =cmsLinkDao.getLinkUrl(params);
		return cmsLinkDO;
    }

}
